package com.ruoyi.yyq.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.yyq.mapper.CarWithdrawalMapper;
import com.ruoyi.yyq.domain.CarWithdrawal;
import com.ruoyi.yyq.service.ICarWithdrawalService;

/**
 * 商户提现记录Service业务层处理
 * 
 * @author 尹永青
 * @date 2025-05-12
 */
@Service
public class CarWithdrawalServiceImpl implements ICarWithdrawalService 
{
    @Autowired
    private CarWithdrawalMapper carWithdrawalMapper;

    /**
     * 查询商户提现记录
     * 
     * @param id 商户提现记录主键
     * @return 商户提现记录
     */
    @Override
    public CarWithdrawal selectCarWithdrawalById(Long id)
    {
        return carWithdrawalMapper.selectCarWithdrawalById(id);
    }

    /**
     * 查询商户提现记录列表
     * 
     * @param carWithdrawal 商户提现记录
     * @return 商户提现记录
     */
    @Override
    public List<CarWithdrawal> selectCarWithdrawalList(CarWithdrawal carWithdrawal)
    {
        return carWithdrawalMapper.selectCarWithdrawalList(carWithdrawal);
    }

    /**
     * 新增商户提现记录
     * 
     * @param carWithdrawal 商户提现记录
     * @return 结果
     */
    @Override
    public int insertCarWithdrawal(CarWithdrawal carWithdrawal)
    {
        return carWithdrawalMapper.insertCarWithdrawal(carWithdrawal);
    }

    /**
     * 修改商户提现记录
     * 
     * @param carWithdrawal 商户提现记录
     * @return 结果
     */
    @Override
    public int updateCarWithdrawal(CarWithdrawal carWithdrawal)
    {
        return carWithdrawalMapper.updateCarWithdrawal(carWithdrawal);
    }

    /**
     * 批量删除商户提现记录
     * 
     * @param ids 需要删除的商户提现记录主键
     * @return 结果
     */
    @Override
    public int deleteCarWithdrawalByIds(Long[] ids)
    {
        return carWithdrawalMapper.deleteCarWithdrawalByIds(ids);
    }

    /**
     * 删除商户提现记录信息
     * 
     * @param id 商户提现记录主键
     * @return 结果
     */
    @Override
    public int deleteCarWithdrawalById(Long id)
    {
        return carWithdrawalMapper.deleteCarWithdrawalById(id);
    }
}
